<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-packetConfig-edit" th:object="${packetConfig}">
            <input id="redPacketConfigId" name="redPacketConfigId" th:field="*{redPacketConfigId}"  type="hidden">
            <div class="form-group">	
                <label class="col-sm-3 control-label">红包金额：</label>
                <div class="col-sm-8">
                    <input id="redPacketAdmount" name="redPacketAdmount" th:field="*{redPacketAdmount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">红包描述：</label>
                <div class="col-sm-8">
                    <input id="redPacketRemark" name="redPacketRemark" th:field="*{redPacketRemark}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">红包图片：</label>
                <div class="col-sm-8">
                    <input id="redPacketPic" name="redPacketPic" th:field="*{redPacketPic}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">红包数量：</label>
                <div class="col-sm-8">
                    <input id="redPacketQuantity" name="redPacketQuantity" th:field="*{redPacketQuantity}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">NORMAL:普通红包

DENSE:密码红包

OFFICAL:祝福红包

ALLCOUNTRY:全国红包;ROBOT:系统发私人红包：</label>
                <div class="col-sm-8">
                    <input id="redPacketType" name="redPacketType" th:field="*{redPacketType}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">红包密码：</label>
                <div class="col-sm-8">
                    <input id="redPacketPw" name="redPacketPw" th:field="*{redPacketPw}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">红包所在经度：</label>
                <div class="col-sm-8">
                    <input id="redPacketLon" name="redPacketLon" th:field="*{redPacketLon}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">红包所在纬度：</label>
                <div class="col-sm-8">
                    <input id="redPacketLat" name="redPacketLat" th:field="*{redPacketLat}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">随机规则(KM:范围红包,ALLCITY:全市,ALLAREA:全区)：</label>
                <div class="col-sm-8">
                    <input id="randomRules" name="randomRules" th:field="*{randomRules}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">广告外部链接：</label>
                <div class="col-sm-8">
                    <input id="advertisingExternalLink" name="advertisingExternalLink" th:field="*{advertisingExternalLink}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">广告手机号码：</label>
                <div class="col-sm-8">
                    <input id="advertisingPhone" name="advertisingPhone" th:field="*{advertisingPhone}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">广告地址：</label>
                <div class="col-sm-8">
                    <input id="advertisingAddress" name="advertisingAddress" th:field="*{advertisingAddress}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">创建时间：</label>
                <div class="col-sm-8">
                    <input id="ctime" name="ctime" th:field="*{ctime}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">所属用户id ：</label>
                <div class="col-sm-8">
                    <input id="redPacketUserId" name="redPacketUserId" th:field="*{redPacketUserId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">红包状态
FINISH:完成 
UNFINISH:未完成,
EXPIRED:过期退回
WAITPAY:待支付
FAIL:失效
REFUNDING:退款中
：</label>
                <div class="col-sm-8">
                    <input id="redPacketStatus" name="redPacketStatus" th:field="*{redPacketStatus}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">子红包领取城市 : 有值时，默认为城市可见，：</label>
                <div class="col-sm-8">
                    <input id="redPacketSonCity" name="redPacketSonCity" th:field="*{redPacketSonCity}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">子红包领取区县 : 有值时，默认为区县可见，：</label>
                <div class="col-sm-8">
                    <input id="redPacketSonArea" name="redPacketSonArea" th:field="*{redPacketSonArea}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">发红包用户头像：</label>
                <div class="col-sm-8">
                    <input id="userImg" name="userImg" th:field="*{userImg}" class="form-control" type="text">
                </div>
            </div>
			<div class="form-group">
				<div class="form-control-static col-sm-offset-9">
					<button type="submit" class="btn btn-primary">提交</button>
					<button onclick="$.modal.close()" class="btn btn-danger" type="button">关闭</button>
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "module/packetConfig"
		$("#form-packetConfig-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			submitHandler: function(form) {
				$.operate.save(prefix + "/edit", $('#form-packetConfig-edit').serialize());
			}
		});
	</script>
</body>
</html>
